package com.rw.pojo;

import com.rw.func.TestA;
import com.rw.func.TestB;

/**
 * @author rabit
 */
public class FunctionB implements Function{
    private TestA testA;
    private  TestB testB;

    public FunctionB() {
    }

    public FunctionB(TestA testA, TestB testB) {
        this.testA = testA;
        this.testB = testB;
    }

    @Override
    public void test(){
       FunctionA fa = new FunctionA();
//       System.out.println("需要前面的修改的代码");
//       fa.test();
//       System.out.println("需要后面的修改的代码");
//        TestA testA = new TestA();
//        TestB testB =new TestB();
        this.testA.update();
        fa.test();
        this.testB.update();
    }
}
